#!/bin/bash

# Ollama模型查询脚本
# 用于查询本地ollama服务已安装的模型

echo "🔍 查询Ollama已安装模型..."
echo "================================"

# 检查Python环境
if ! command -v python3 &> /dev/null; then
    echo "❌ 未找到Python3，请先安装Python3"
    exit 1
fi

# 检查requests库
if ! python3 -c "import requests" 2>/dev/null; then
    echo "❌ 缺少requests库，正在安装..."
    pip3 install requests
fi

# 运行模型查询脚本
python3 scripts/ollama_models.py

echo ""
echo "📝 使用说明:"
echo "1. 如果未安装模型，请使用: ollama pull <模型名>"
echo "2. 常用模型:"
echo "   - ollama pull llama3.2:3b"
echo "   - ollama pull qwen2.5:3b"
echo "   - ollama pull llama3.2:7b"
echo "3. 查看所有可用模型: ollama list" 